from celery import Celery

import os

if not os.getenv('DJANGO_SETTINGS_MODULE'):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'haoke_mall.settings.dev'

app = Celery('haoke27')

app.config_from_object('celery_tasks.config')

app.autodiscover_tasks(
    [
        'celery_tasks.sms',
        'celery_tasks.email',
    ]
)

